package com.zhaoyu.apis.admin;

import com.zhaoyu.model.admin.dtos.ChannelDto;
import com.zhaoyu.model.admin.pojos.AdChannel;
import com.zhaoyu.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(value = "频道管理",description = "频道管理api接口,提供根据名称分页查询频道列表、新增、编辑、删除、查询所有频道等功能")
public interface AdChannelControllerApis {

        @ApiOperation("根据名称分页查询频道列表")
        ResponseResult findByNameAndPageAdChannel(ChannelDto channelDto);

        @ApiOperation("新增")
        ResponseResult saveAdChannel(AdChannel adChannel);

        @ApiOperation("编辑")
        ResponseResult updateAdChannel(AdChannel adChannel);

        @ApiOperation("删除")
        ResponseResult deleteByIdAdChannel(Integer id);

        @ApiOperation("查询所有频道")
        ResponseResult findAllAdChannel();

}